﻿using System;
using UnityEngine;
using UnityEngine.SceneManagement;

// Token: 0x0200041C RID: 1052
public class LogicGlobalFracturing : MonoBehaviour
{
	// Token: 0x06001DCB RID: 7627 RVA: 0x000B6D73 File Offset: 0x000B4F73
	private void Start()
	{
		LogicGlobalFracturing.HelpVisible = true;
	}

	// Token: 0x06001DCC RID: 7628 RVA: 0x000B6D7C File Offset: 0x000B4F7C
	public static void GlobalGUI()
	{
		GUI.Box(new Rect(0f, 0f, 400f, 420f), string.Empty);
		GUI.Box(new Rect(0f, 0f, 400f, 420f), "-----Ultimate Fracturing & Destruction Tool-----");
		GUILayout.Space(40f);
		GUILayout.Label("Press F1 to show/hide this help window", new GUILayoutOption[0]);
		GUILayout.Label("Press 1-" + SceneManager.sceneCountInBuildSettings + " to select different sample scenes", new GUILayoutOption[0]);
		GUILayout.Space(20f);
	}

	// Token: 0x06001DCD RID: 7629 RVA: 0x000B6E18 File Offset: 0x000B5018
	private void Update()
	{
		for (int i = 0; i < SceneManager.sceneCountInBuildSettings; i++)
		{
			if (Input.GetKeyDown(KeyCode.Alpha1 + i))
			{
				SceneManager.LoadScene(i);
			}
		}
		if (Input.GetKeyDown(KeyCode.F1))
		{
			LogicGlobalFracturing.HelpVisible = !LogicGlobalFracturing.HelpVisible;
		}
	}

	// Token: 0x04001DE5 RID: 7653
	[HideInInspector]
	public static bool HelpVisible = true;
}
